package com.wtb.javatool.constant.evaluation;

public enum AssetsType {
	/**
	 * 文档
	 */
	DOCUMENT(0),

	/**
	 * 工具
	 */
	TOOL(1),

	/**
	 * 链接
	 */
	LINK(2);

	private final Integer value;

	AssetsType(Integer value) {
		this.value = value;
	}
	
	public Integer value() {
		return value;
	}
	
	public static AssetsType valueOf(Integer value) {
		for(AssetsType item : AssetsType.values()) {
			if(item.value.equals(value)) {
				return item;
			}
		}
		throw new IllegalArgumentException(String.format("[%s]中根据常量值[%s]找不到对应的枚举常量",
				AssetsType.class.getName(), value));
	}
}
